<%@ include file="/WEB-INF/jsp/include/skin_head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%><%@ taglib uri="http://geeksaga.com/pagination-taglib" prefix="bbs" %>
    <div id="pw_bbs" style="width: ${bbsType.bbsWidth}px;">
            
    <div id="pw_bbs_list">
        <div id="pw_bbs_list_header"></div>
        <div id="pw_bbs_list_body">
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <thead id="pw_bbs_title">
                    <tr>
                        <c:if test="${bbsType.showBbsNoYn == '1'}">
                        <th style="width:40px"><spring:message code="bbs.no" /></th>
                        </c:if>
                        <th><spring:message code="bbs.title" /></th>
                        <c:if test="${bbsType.showNickYn == '1'}">
                        <th style="width:100px"><spring:message code="bbs.userNick" /></th>
                        </c:if>
                        <c:if test="${bbsType.showRegistDateYn == '1'}">
                        <th style="width:120px"><spring:message code="bbs.date" /></th>
                        </c:if>
                    </tr>
                </thead>
                <tbody>
                    <c:if test="${total == 0}">
                    <tr>
                        <td colspan="10" align="center"><spring:message code="bbs.msg.empty"/></td>
                    </tr>
                    </c:if>
                    <c:forEach items="${list}" var="bbsHistory" varStatus="status">
                    <tr onmouseover="this.style.backgroundColor='#f1f6fb'" onmouseout="this.style.backgroundColor='#fefefe'">
                        <c:if test="${bbsType.showBbsNoYn == '1'}">
                        <td>
                        <c:choose>
                        <c:when test="${empty param.currentPage}">
	                        ${(total - (10 * 0)) - status.index}
                        </c:when>
   	                    <c:otherwise>
                            ${(total - (10 * param.currentPage)) - status.index}
                        </c:otherwise>
                       	</c:choose>  
                        </td>
                        </c:if>
                        <td align="left">
                            <a href="<c:url value="/history/view.do?sid=${bbsHistory.sid}&amp;currentPage=${param.currentPage}&amp;categorySid=${param.categorySid}"/>">${bbsHistory.title}</a>
                        </td>
                        <c:if test="${bbsType.showNickYn == '1'}">
                        <td>${bbsHistory.userNick}</td>
                        </c:if>
                        <c:if test="${bbsType.showRegistDateYn == '1'}">
                        <td>${bbsHistory.registTimestamp}</td>
                        </c:if>
                    </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div>
        <div id="pw_list_footer">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <colgroup>
                <col />
                <col width="3" />
                <col class="page" />
                <col width="3" />
            </colgroup>
            <tr>
                <td class="search"><a href="<c:url value="/bbs/search.do?bbsId="/>${bbs.bbsId}&amp;command=SEARCH"><img src="<c:url value="/img/skin/${bbsType.bbsSkin}/btn_board_search.gif"/>" /></a></td>
                <td><img src="<c:url value="/img/skin/${bbsType.bbsSkin}/b_board_left.gif"/>" /></td>
                <td align="center">
                    <bbs:page
		                total="${total}"
		                pageSize="10"
		                link="${pageContext.request.contextPath}/bbs/history.do?bbsId=${bbs.bbsId}&amp;bbsSid=${param.bbsSid}"
		                beginLabel="Home "
		                endLabel=" End"
		                prevLabel="&lt; "
		                nextLabel=" >"
		                pageGroupSize="10" />
                </td>
                <td><img src="<c:url value="/img/skin/${bbsType.bbsSkin}/b_board_right.gif"/>" /></td>
            </tr>
            </table>
        </div>
        <%@ include file="/WEB-INF/jsp/include/copyright.jsp" %>
    </div>
    
    </div>